export default {
	state: {
		timeInterval: [],
		initTime: [],
		trace: {

		},
		routelist: {

		}
	},
	actions: {
		setTimeInterval(context, timeInterval) {
			context.commit('setTimeInterval', timeInterval)
		},
		setTrace(context, trace) {
			context.commit('setTrace', trace)
		},
		setRouteList(context, routelist) {
			context.commit('setRouteList', routelist)
		},
		setInitTime(context, timeInterval){
			console.log(timeInterval)
			context.commit('setInitTime', timeInterval)
		}
	},
	mutations: {
		setTimeInterval(state, timeInterval) {
			state.timeInterval = timeInterval;
		},
		setTrace(state, trace) {
			state.trace = trace;
		},
		setRouteList(state, routelist) {
			state.routelist = routelist;
		},
		setInitTime(state, timeInterval){
			state.initTime = timeInterval;
		}
	}
}